﻿using System.Web;
using System.Xml.Linq;
using WroxBlog.Models.Interfaces;

namespace WroxBlog.Models.Implementations
{
    public class BlogRepository : IBlogRepository
    {
        #region IBlogRepository Members

        public string GetAboutText()
        {
            var doc = XDocument.Load(HttpContext.Current.Server.MapPath
                ("~/app_data/about.xml"));

            return doc.Element("About").Value;
        }

        #endregion
    }
}
